package com.caogt.programmer.qm.question.service;

import com.caogt.programmer.qm.question.entity.Question;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author caogt
 * @since 2020-01-05
 */
public interface IQuestionService {

    void saveQuestion(Question question);

    void updateQuestionById(Question question);

    void deleteById(Long id);

    List<Question> selectByCategory(Long categoryId);

    List<Question> selectByCategory(Long categoryId,int size);

    List<Question> selectByLevel(Long levelId);

    List<Question> selectByLevel(Long levelId,int size);

}
